Skip to content

fix: adapt foc-cli to Synapse SDK v1 APIs#18

Merged
snissn merged 2 commits into
codex/synapse-v1-depsfrom
codex/synapse-v1-api
Jun 12, 2026
Merged

fix: adapt foc-cli to Synapse SDK v1 APIs#18
snissn merged 2 commits into
codex/synapse-v1-depsfrom
codex/synapse-v1-api

Conversation

@snissn

@snissn snissn commented Jun 12, 2026

Copy link
Copy Markdown
Member

Summary

  • Await async Piece.calculate in dataset upload and switch findPiece to v1 polling options.
  • Read upload cost rates from prep.costs.rates.perMonth.
  • Derive wallet summary timeRemaining from v1 runwayInEpochs while preserving the existing output field.
  • Update command mocks to v1-only shapes and tighten tests around async piece CID resolution, cost rates, and account summary runway/coverage fields.

Fixes #14
Fixes #15

Graph

Predecessors: #13 / PR #17
Successors: #16

This PR is stacked on #17. It should not be merged until #17 is merged and this branch is updated onto the final base.

Validation

  • bun install --frozen-lockfile
  • bun run test — 32 pass, 0 fail
  • bunx biome check src tests
  • bunx tsc --noEmit
  • bun run build
  • git diff --check

Notes

  • No provider selection, payment behavior, or package publishing changes are included.
  • wallet summary keeps its existing timeRemaining output, now based on Synapse v1 runway semantics.

@snissn snissn merged commit 3a2d218 into codex/synapse-v1-deps Jun 12, 2026
1 check passed
@snissn snissn deleted the codex/synapse-v1-api branch June 12, 2026 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant